load(
    "//bazel:envoy_build_system.bzl",
    "envoy_cc_test",
    "envoy_package",
)

licenses(["notice"])  # Apache 2

envoy_package()

envoy_cc_test(
    name = "dns_cluster_backcompat_test",
    srcs = ["dns_cluster_backcompat_test.cc"],
    rbe_pool = "2core",
    deps = [
        "//source/extensions/clusters/common:dns_cluster_backcompat_lib",
        "//test/test_common:utility_lib",
        "@envoy_api//envoy/config/cluster/v3:pkg_cc_proto",
        "@envoy_api//envoy/extensions/clusters/common/dns/v3:pkg_cc_proto",
        "@envoy_api//envoy/extensions/clusters/dns/v3:pkg_cc_proto",
    ],
)

envoy_cc_test(
    name = "logical_host_test",
    srcs = ["logical_host_test.cc"],
    rbe_pool = "6gig",
    deps = [
        "//source/extensions/clusters/common:logical_host_lib",
        "//test/mocks/network:transport_socket_mocks",
        "//test/mocks/upstream:host_mocks",
    ],
)

envoy_cc_test(
    name = "logical_host_integration_test",
    srcs = ["logical_host_integration_test.cc"],
    rbe_pool = "6gig",
    deps = [
        "//source/common/config:utility_lib",
        "//source/extensions/clusters/common:logical_host_lib",
        "//source/extensions/clusters/dns:dns_cluster_lib",
        "//source/extensions/clusters/logical_dns:logical_dns_cluster_lib",
        "//test/integration:http_integration_lib",
        "//test/mocks/network:network_mocks",
        "//test/test_common:registry_lib",
        "//test/test_common:threadsafe_singleton_injector_lib",
        "@envoy_api//envoy/extensions/clusters/dns/v3:pkg_cc_proto",
    ],
)
